home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
msysjour
/
vol07
/
04
/
netbios2
/
net.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-01
|
1KB
|
56 lines
/* Net calls */
#include <direct.h>
#include <dos.h>
BYTE AddName ( LPSTR lpLocalName, BYTE * pbNameNum);
BYTE DeleteName( LPSTR lpLocalName);
BYTE CreateASession ( LPSTR lpRemoteName,
LPSTR lpLocalName,
BYTE * pbLsn);
BYTE Hangup( BYTE bLsn);
char * R_getcwd( char * pszBuffer, int maxlen);
/* struct to contain find first information */
typedef struct {
char chFileName [ MAXFILENAME ] ;
unsigned uAttrib;
struct find_t FileInfo;
} FINDFIRST;
/* struct to contain find next information */
typedef struct {
struct find_t FileInfo;
} FINDNEXT;
/* struct to contain getcwd information */
typedef struct {
char chBuffer [ MAXPATH ] ;
int imaxlen;
} GETCWD;
/* A single packet going over net */
typedef struct {
BYTE bCommand; /* Requested Command */
union
{
FINDFIRST FindFirst;
FINDNEXT FindNext;
GETCWD GetCwd;
} data;
} PACKET;
#define PACKET_SIZE (sizeof(PACKET))
/* Commands */
#define R_GETCWD 01
#define R_FINDFIRST 02
#define R_FINDNEXT 03